package com.huike.clues.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.huike.clues.domain.vo.SystemDictDataVO;
import com.huike.clues.mapper.SystemDictDataMapper;
import com.huike.clues.service.SystemDictDataService;
import com.huike.common.core.domain.entity.SysDictDataDTO;
import com.huike.common.entity.QueryPageBean;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description SystemDictDataServiceImpl
 * @Author kiloc
 * @Date 2023-10-2023/10/15
 */
@Service
@RequiredArgsConstructor
public class SystemDictDataServiceImpl implements SystemDictDataService {

    private final SystemDictDataMapper systemDictDataMapper;

    /**
     * 数据字典数据信息列表
     *
     * @param queryPageBean 封装前端数据
     * @return 返回查询结果
     */


    @Override
    public  Page<List<SystemDictDataVO>> page(QueryPageBean<SysDictDataDTO> queryPageBean) {


        PageHelper.startPage(queryPageBean.getPageNum(), queryPageBean.getPageSize());

       Page< List<SystemDictDataVO>> list = systemDictDataMapper.page(queryPageBean.getQueryParams());


      return list;
    }
}

